package com.goods.common.model.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "biz_product")
@Data
public class Product {
    @Id
    private Long id;
    private String pNum;//商品编号
    private String name;//商品名称
    private String imageUrl;//图片
    private String model;//规格型号
    private String unit;//计算单位
    private String remark;//备注
    private Integer sort;//排序
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;
    private Long oneCategoryId;
    private Long twoCategoryId;
    private Long threeCategoryId;
    private Integer status;//是否删除:1物资正常,0:物资回收,2:物资审核中
}
